package com.yntx.usercenter.authorization.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yntx.usercenter.authorization.po.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 添加用户角色
     *
     * @param userId 用户id
     * @param roleId 角色id
     */
    void addUserRole(@Param("userId") long userId, @Param("roleId") long roleId);

}
